window.onload=function(){
		var oBox=document.getElementById("photo_box");
		var oUl=document.getElementById("abs");
		var prev=document.getElementById("photo_prev");
		var next=document.getElementById("photo_next");
		var aLi=oUl.children;
		oUl.innerHTML+=oUl.innerHTML;
		oUl.innerHTML+=oUl.innerHTML;
		
		oUl.style.width=aLi[0].offsetWidth*aLi.length+"px";
		var n=0;
		var times=null;
		function fun(){
			clearInterval(times)
			  times=setInterval(function(){
			  n-=10;
			  if(n<-oUl.offsetWidth/2){
			  	n=0;
			  }
			  oUl.style.left=n+"px";
		   },200)
		}
//		fun()
	    
	    prev.onclick=function(){
	    	clearInterval(times)
	    	fun()
	    }
	    
	   
	    next.onclick=function(){
	    	clearInterval(times)
			  times=setInterval(function(){
			  n+=10;
			  if(n>0){
			  	n=-oUl.offsetWidth/2;
			  }
			  oUl.style.left=n+"px";
		   },200)
	    }
	    oBox.onmouseover=function(){
	    	clearInterval(times)
	    }
	    oBox.onmouseout=function(){
	    	fun()
	    }
   }